<?php /* Smarty version Smarty-3.1.6, created on 2018-06-26 17:55:26
         compiled from "./Tpl/Admin\Star\user_list.html" */ ?>
<?php /*%%SmartyHeaderCode:234955b20c6c73adce9-98609811%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b0dbfe1afa7c849c85867fde39f0efa369b366ea' => 
    array (
      0 => './Tpl/Admin\\Star\\user_list.html',
      1 => 1530006924,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '234955b20c6c73adce9-98609811',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5b20c6c78ed8e',
  'variables' => 
  array (
    'module' => 0,
    'controller' => 0,
    'action' => 0,
    'page' => 0,
    'limit' => 0,
    'ofield' => 0,
    'otype' => 0,
    'auditType' => 0,
    'selectedAuditType' => 0,
    'nickname' => 0,
    'list' => 0,
    'item' => 0,
    'sex' => 0,
    'race' => 0,
    'photo' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5b20c6c78ed8e')) {function content_5b20c6c78ed8e($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'E:\\findme\\findmeServer\\ThinkPHP\\Library\\Vendor\\Smarty\\plugins\\function.html_options.php';
?><?php echo $_smarty_tpl->getSubTemplate ("Public/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
    .album img{width: 80px;}
</style>
</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">明星管理</div>

        <?php echo $_smarty_tpl->getSubTemplate ("Star/nav.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" method="post" class="ui-form reportForm" id="searchForm">
                    <input name="m" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
">
                    <input name="c" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
">
                    <input name="a" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
">

                    <input name="p" id="page" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value)===null||$tmp==='' ? 1 : $tmp);?>
">
                    <input name="limit" id="limit" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['limit']->value)===null||$tmp==='' ? 10 : $tmp);?>
">
                    <input name="ofield" id="ofield" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['ofield']->value;?>
">
                    <input name="otype"  id="otype"  type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['otype']->value;?>
">

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">审核状态</label>
                        <select name="auditStatus" class="ui-select" style="width: 160px;">
                            <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['auditType']->value,'selected'=>$_smarty_tpl->tpl_vars['selectedAuditType']->value),$_smarty_tpl);?>

                        </select>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">名称</label>
                       <input type="text" class="ui-text"  name="nickname" value="<?php echo $_smarty_tpl->tpl_vars['nickname']->value;?>
"/>
                    </div>

                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" >查询</button>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="button" id="adduserBtn" class="ui-button" onclick="LayerShow();">添加明星</button>
                    </div>
                </form>
            </div>
        </div>
        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                <tr>
                    <th class="pct10">名称</th>
                    <th class="pct10">头像</th>
                    <th class="pct5">性别</th>
                    <th class="pct5">人种</th>
                    <th class="pct20">图集</th>
                    <th class="pct5">状态</th>
                    <th class="pct10 last-col">操作</th>
                </tr>
                </thead>
                <tbody>
                <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                <tr>
                    <td>(<?php echo $_smarty_tpl->tpl_vars['item']->value['uid'];?>
)<?php echo $_smarty_tpl->tpl_vars['item']->value['nickname'];?>
</td>
                    <td><img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['headPic'];?>
" style="max-height:150px;max-width:100px"/></td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sex']->value[$_smarty_tpl->tpl_vars['item']->value['sex']];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['race']->value[$_smarty_tpl->tpl_vars['item']->value['race']];?>
</td>
                    <td class="album"><?php  $_smarty_tpl->tpl_vars['photo'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['photo']->_loop = false;
 $_from = split(',',$_smarty_tpl->tpl_vars['item']->value['album']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['photo']->key => $_smarty_tpl->tpl_vars['photo']->value){
$_smarty_tpl->tpl_vars['photo']->_loop = true;
?>
                        <?php if (strlen($_smarty_tpl->tpl_vars['photo']->value)>1){?>
                            <img src="<?php echo $_smarty_tpl->tpl_vars['photo']->value;?>
" />
                        <?php }?>
                    <?php } ?>
                    </td>
                    <td><?php echo $_smarty_tpl->tpl_vars['auditType']->value[$_smarty_tpl->tpl_vars['item']->value['status']];?>
</td>
                    <td class="ta_l">
                        <div class="handler">
                            <a href="<?php echo u(('starEdit/?uid=').($_smarty_tpl->tpl_vars['item']->value['uid']));?>
" onclick="LayerShow();">修改</a>
                            <span class="sep">|</span>
                            <?php if ($_smarty_tpl->tpl_vars['item']->value['status']!=@ENABLE_ENABLE){?>
                            <a href="<?php echo u(('starUpdate/?uid=').($_smarty_tpl->tpl_vars['item']->value['uid']));?>
" onclick="if(!confirm('确定不启用该商户么？'))return false;">通过</a>
                            <?php }else{ ?>
                            <a href="<?php echo u(('starUpdate/?uid=').($_smarty_tpl->tpl_vars['item']->value['uid']));?>
" onclick="if(!confirm('确定启用该商户么？'))return false;">不通过</a>
                            <?php }?>
                        </div>
                    </td>
                </tr>
                <?php } ?>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <?php echo $_smarty_tpl->getSubTemplate ("Public/page.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

        </div>

    </div>
</div>
<script>
    $('#adduserBtn').click(function(){
        location.href="<?php echo u('StarAdd');?>
";
    });
</script>
</body>
<?php echo $_smarty_tpl->getSubTemplate ("Public/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>